package com.dnr.arch.kernel.api;

import java.util.Collection;

import com.dnr.arch.kernel.api.model.Value;
import com.dnr.arch.kernel.services.persistence.exceptions.PersistenceException;

public interface InterfaceToPersistence {

	public Collection<Value> findAll(Class<? extends Value> clazz);
	
	public Collection<Value> find(Class<? extends Value> clazz, Object code);
	
	//public Collection<Value> findAll(Class<?> clazz, )
	
	public Collection<Value> executeQuery(String query);
	
	public void init();
	
	public void synchronize(Value value) throws PersistenceException;
	
	public void synchronizeAndCommit(Value value) throws PersistenceException;
	
}
